package org.lh.ibernate.core;


import org.lh.ibernate.core.tools.ParameterLink;

import java.util.List;

public interface IQuery<T,PK> {

     T findObjFromRedis(PK pk)  throws Exception;

     T findOneObjBySql(Class<T> clazz,PK pk)  throws Exception;

     List<T> findAllBySql(Class<T> clazz) throws Exception;

     List<T> queryCustom(String sql, ParameterLink parameterLink, Class clazz) throws Exception;

     T saveObjToRedis(PK pk,T obj);

    List<T>  queryCallHandle(String callSql, Class clazz) throws Exception;
}
